package com.genexususa.eo.bing.test.delete;

import com.genexususa.eo.bing.connection.TargetManager;
import com.genexususa.eo.bing.test.TestUtil;

public class ConsumeDeleteTargetsFromLibrary {
    public static void main(String[] args) {
        TestUtil testUtil = new TestUtil();
        String targetsXML = "<Bing_TargetCollection xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                 "\t<Target xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                    "\t\t<GxTargetId>16153365213</GxTargetId>\n" +
                                    "\t\t<BingTargetId>" + testUtil.targetId1 + "</BingTargetId>\n" +
                                "\t</Target>\n" +
                                "\t<Target xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                    "\t\t<GxTargetId>16153365213</GxTargetId>\n" +
                                    "\t\t<BingTargetId>" + testUtil.targetId2 + "</BingTargetId>\n" +
                                "\t</Target>\n" +
                            "</Bing_TargetCollection>\n";
        TargetManager resource = new TargetManager();
        System.out.println("Consuming DeleteTargetsFromLibrary.....");
        String userName = testUtil.userName;
        String password = testUtil.password;
        String developerToken = testUtil.developerToken;
        long customerId = testUtil.customerId;
        long customerAccountId = testUtil.customerAccountId;
        String applicationId = testUtil.applicationId;
        String result = resource.deleteTargetsFromLibrary(customerAccountId, targetsXML);
        System.out.println("Result:\n" + result);
    }
}
